Crate secured_enclave

source ·

Re-exports

Modules

Structs

  • The Cipher struct provides a common interface for cryptographic operations, specifically focusing on encryption and decryption.
  • Enclave acts as a container for encrypted data, including metadata and the encrypted content itself.
  • Key holds a public key and a salt value. This struct is specifically designed for use in symmetric encryption, and is compatible with multiple encryption algorithms.
  • SignedEnvelope struct for handling data with its associated MAC.

Enums

Constants

  • Size of the ChaCha20 nonce in bytes. The nonce is a 64-bit (8 bytes) value used to make each block unique.

Functions

  • Generates a random byte array of a specified size.